Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement api/challenge endpoints #52

Merged
merged 18 commits into from
Nov 1, 2023

Conversation

Anupya
Copy link
Contributor

@Anupya Anupya commented Oct 22, 2023

Description

Add all the remaining challenge endpoints:

  • get_mine = /api/challenge
  • cancel = /api/challenge/{challengeId}/cancel
  • start_clocks = /api/challenge/{gameId}/start-clocks
  • add_time_to_opponent_clock = /api/round/{game_id}/add-time/{seconds}
  • create_tokens_for_multiple_users = /api/token/admin-challenge

Move ChallengeDeclineReason to berserk/types/challenges.py as DeclineReason.

After merge

Please check off all api/challenge/... endpoints in the issue description for #6.

@Anupya Anupya marked this pull request as ready for review October 22, 2023 04:54
@benediktwerner
Copy link
Member

benediktwerner commented Oct 22, 2023

And as mentioned in the other PR, return type annotations should ideally use TypedDict.

@Anupya Anupya force-pushed the Anupya/add-challenge-endpoints branch from 950d552 to 3e46bb3 Compare October 23, 2023 17:44
@Anupya Anupya force-pushed the Anupya/add-challenge-endpoints branch from 9fc7355 to e764faa Compare October 30, 2023 14:25
@Anupya Anupya force-pushed the Anupya/add-challenge-endpoints branch from e764faa to 6f5cabc Compare November 1, 2023 18:40
@Anupya Anupya requested a review from kraktus November 1, 2023 18:54
@kraktus
Copy link
Member

kraktus commented Nov 1, 2023

Perfect thanks! Just a NIT: ad22b75

@kraktus kraktus merged commit dba4fe9 into lichess-org:master Nov 1, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants